import request from '@/utils/request'

export function saveProduct(data) {
  return request({
    url: '/pms/product',
    method: 'post',
    data
  })
}

export function getProductList(params) {
  return request({
    url: '/pms/product/list',
    method: 'get',
    params
  })
}
export function getProductInfo(id) {
  return request({
    url: '/pms/product/' + id,
    method: 'get',
  })
}

export function deleteProduct(params) {
  return request({
    url: '/pms/product/del',
    method: 'delete',
    params
  })
}
